package com.pharmacy.pharmacy.domain;


import java.util.Date;

/**
 * 【】对象 medicine
 * 
 * @author 
 * @date 2025-05-08
 */
public class Medicine 
{

    /** 主键，自增ID */
    private Long id;

    /** 药品名称 */
    private String medicineName;

    /** 药品说明 */
    private String description;

    /** 药品分类ID（不设外键） */
    private Long categoryId;

    /** 单价（单位：分） */
    private Long price;

    private Date createTime;


    public Medicine() {
    }

    public Medicine(Long id, String medicineName, String description, Long categoryId, Long price, Date createTime) {
        this.id = id;
        this.medicineName = medicineName;
        this.description = description;
        this.categoryId = categoryId;
        this.price = price;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return medicineName
     */
    public String getMedicineName() {
        return medicineName;
    }

    /**
     * 设置
     * @param medicineName
     */
    public void setMedicineName(String medicineName) {
        this.medicineName = medicineName;
    }

    /**
     * 获取
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取
     * @return categoryId
     */
    public Long getCategoryId() {
        return categoryId;
    }

    /**
     * 设置
     * @param categoryId
     */
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取
     * @return price
     */
    public Long getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Long price) {
        this.price = price;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "Medicine{id = " + id + ", medicineName = " + medicineName + ", description = " + description + ", categoryId = " + categoryId + ", price = " + price + ", createTime = " + createTime + "}";
    }
}
